package com.zdlt.admin.api.mapper;

import com.zdlt.admin.api.domain.ImageInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ImageInfoMapper {
    List<ImageInfo> list(
            @Param("collect") boolean collect,
            @Param("pageIndex") int pageIndex,
            @Param("perPage") int perPage);

    int count(@Param("collect") boolean collect);

    int insert(@Param("image") ImageInfo imageInfo);

    int update(@Param("image") ImageInfo imageInfo);

    void delete(@Param("id") Integer id);
}
